[#ftl]
[#assign entityName="GoodsClassify"]
[#assign pathRoot="/admin/ec/classify/classify_"]
[@jsec.authPage perms=["${entityName}ctrl"]/]
[@frame.root]
  <!-- Default panel contents -->
  [@frame.title]
  	编辑分类
  [/@]
[@frame.body]
  	[#global ent=(jdao.hql("from ${entityName} where id=?",[jweb.pathName("id")])()[0])!{}]
    [@form.form id="ent" action="${base}${pathRoot}save.shtml" back="${base}${pathRoot}list.shtml"]
		[@form.text id="code" label="编号" length=3 required=true valid={"remote":{"msg":"已存在的编号","url":"/admin/ec/classify/classify_code_valid.shtml","prms":["code"]},"regex":{"rule":"^\\\\w+$","msg":"编号必须是字符和数字"}}/]
		[@form.text id="name" label="名称" length=3 required=true /]
		[@form.select2 id="classifyType.id" label="类型" datas=jdao.hql("from GoodsClassifyType")() value="id" title="label" length=3 required=true/]
		[@form.editor id="memo" label="备注" length=3 /]
	[/@]
[/@]
[/@]